
export default function user (state=[], action){
    switch(action.type){
        case 'yes':
            return Object.assgin({}, state, action.data);
        case 'no':
            return Object.assgin({}, state, action.data);
        default:
            return state
    }
}